/**
 * 
 */
package org.rollinitiative.d20.entity;

import org.rollinitiative.d20.schema.d20.SaveEnum;

/**
 * @author jmccormi
 *
 */
public enum Save {

	FORTITUDE, REFLEX, WILL;
	
	public static Save mapSave(SaveEnum save) {
		int saveVal = save.enumValue().intValue();
		switch (saveVal) {
		case SaveEnum.INT_FORTITUDE:
			return FORTITUDE;
		case SaveEnum.INT_REFLEX:
			return REFLEX;
		case SaveEnum.INT_WILL:
			return WILL;
		default:
			return FORTITUDE;
		}
	}
}
